package com.project.bean;

import java.time.LocalDate;

public class StudentBean {
    /**学生id*/
    private int id;
    /**学生姓名*/
    private String name;
    /**学生性别*/
    private String sex;
    /**学生电话*/
    private String phone;
    /**入住时间*/
    private LocalDate into = LocalDate.now();
    /**学生头像*/
    private String face;
    /**学生班级*/
    private ClassBean classBean;
    /**学生房间*/
    private RoomBean roomBean;

    public StudentBean() {
    }

    public StudentBean(String name, String sex, String phone, String face, ClassBean classBean, RoomBean roomBean) {
        this.name = name;
        this.sex = sex;
        this.phone = phone;
        this.into = into;
        this.face = face;
        this.classBean = classBean;
        this.roomBean = roomBean;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public LocalDate getInto() {
        return into;
    }

    public void setInto(LocalDate into) {
        this.into = into;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public ClassBean getClassBean() {
        return classBean;
    }

    public void setClassBean(ClassBean classBean) {
        this.classBean = classBean;
    }

    public RoomBean getRoomBean() {
        return roomBean;
    }

    public void setRoomBean(RoomBean roomBean) {
        this.roomBean = roomBean;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", into=" + into +
                ", face='" + face + '\'' +
                ", classBean=" + classBean +
                ", roomBean=" + roomBean +
                "}\n";
    }
}
